 #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>

void getInput(char countries[][80])
{
    printf("Input five countries' names:\n");
    for (int i = 0; i < 5; i++)
    {
        gets(countries[i]);
    }
}

void getMinimumCountry(char countries[][80], char minimumCountry[])
{
    strcpy(minimumCountry, countries[0]);
    for (int i = 1; i < 5; i++)
    {
        if (strcmp(countries[i], minimumCountry) < 0)
        {
            strcpy(minimumCountry, countries[i]);
        }
    }
}

int main()
{
    char countries[5][80];
    char minimumCountry[80];

    getInput(countries);
    getMinimumCountry(countries, minimumCountry);

    printf("The minimum is:%s\n", minimumCountry);

    return 0;
}